package com.cloud.bssp.nio.selector.read.messagelimit;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @description： TODO
 * @author：weirx
 * @date：2021/11/4 14:55
 * @version：3.0
 */
public class ClientTest {

    public static void main(String[] args) throws IOException {
        Socket max = new Socket("localhost", 9000);
        OutputStream out = max.getOutputStream();
        out.write("hello".getBytes());
        out.write("world".getBytes());
        out.write("你好".getBytes());
        out.write("世界".getBytes());
        max.close();
    }
}
